FROM docker.io/java:8u111-jdk-alpine
 
MAINTAINER Tony <1174616612@qq.com>

ENV TOMCAT_VERSION=8.0.52 \
	TZ=Asia/Shanghai

#安装tomcat	
COPY apache-tomcat-${TOMCAT_VERSION}.tar.gz /usr/local/
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone  \
	&& cd /usr/local  \	
    && tar xzf apache-tomcat-${TOMCAT_VERSION}.tar.gz  \
	&& rm apache-tomcat-${TOMCAT_VERSION}.tar.gz  \
	&& mv apache-tomcat-${TOMCAT_VERSION} tomcat  

WORKDIR /usr/local/tomcat
EXPOSE 8080 
CMD ["./bin/catalina.sh", "run"]

